package com.ronghui.cash.parambean;


import com.ronghui.cash.util.Validator;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class MobileAndVcode {

    @NotNull(message="手机号不能为空")
    @Pattern(regexp= Validator.REGEX_MOBILE,message="手机号格式错误")
    private String mobile;
	
	@NotNull(message = "验证码不能为空")
	@Pattern(regexp=Validator.VCODE,message="验证码格式错误")
	private String vcode;

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getVcode() {
		return vcode;
	}

	public void setVcode(String vcode) {
		this.vcode = vcode;
	}
	
}
